package com.gotop.common.config.page;

import com.github.pagehelper.PageInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: cem
 * @description: 分页配置
 * @author: superfish
 * @create: 2020-12-22 15:55
 **/
@Configuration
public class PageHelperConfig {
    @Bean
    public PageInterceptor pageInterceptor() {
        PageInterceptor paginationInterceptor = new PageInterceptor();
        return paginationInterceptor;
    }
}